package com.carkeeper.order.feign;

import com.carkeeper.order.pojo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.text.ParseException;
import java.util.Date;
import java.util.List;
import java.util.Map;

@FeignClient(name = "Order")
public interface OrderFeign {
    @GetMapping("/serviceOrder/findOrders")
    public List<Order> findOrders(@RequestParam Map searchMap);

    @GetMapping("/serviceOrder/findMoneyByDate")
    public List<Map> findMoneyByDate (@RequestParam Map map)throws ParseException;
}